﻿Imports System.Data
Imports VSModel
Imports Cls_Common

Partial Class FrontEnd_Control_GioiThieu
    Inherits System.Web.UI.UserControl
#Region "Sub and Function "
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            ShowData()
        End If
    End Sub
    Protected Sub ShowData()
        Dim data As New VSEntities
        'Add DomainName DUC 09-09-2014
        Dim p As Menu = (From q In data.Menus Where q.Domain = DomainName And q.MenuId = 107 Select q).SingleOrDefault
        If Not p Is Nothing Then
            Page.Title = p.Title
            ltrDescription.Text = IIf(IsNothing(p.Description) = True, "", p.Description)
        End If
    End Sub
#End Region
End Class
